<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DocuServe.Core.Entities.CmsAttribute>" %>
<%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>
<% Html.BeginForm(); %>
<fieldset>
    <legend>Fields</legend>
    <p>
        <label for="Description">
            Description:</label>
        <%= Html.TextBox("Description", Model.Description) %>
        <%= Html.ValidationMessage("Description", "*") %>
    </p>
    <p>
        <label for="Name">
            Name:</label>
        <%= Html.TextBox("Name", Model.Name) %>
        <%= Html.ValidationMessage("Name", "*") %>
    </p>
    <p>
        <label for="DateCreated">
            DateCreated:</label>
        <%= Html.TextBox("DateCreated", String.Format("{0:g}", Model.DateCreated)) %>
        <%= Html.ValidationMessage("DateCreated", "*") %>
    </p>
    <p>
        <label for="DateModified">
            DateModified:</label>
        <%= Html.TextBox("DateModified", String.Format("{0:g}", Model.DateModified)) %>
        <%= Html.ValidationMessage("DateModified", "*") %>
    </p>
    <p>
        <input type="submit" value="Save" />
    </p>
</fieldset>
<% Html.EndForm(); %>
<div>
    <%=Html.ActionLink("Back to List", "Index") %>
</div>
